package com.itheima.String;

import java.util.Scanner;

public class Demo06CharAt {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        System.out.println("请输入:");
        String str = sc.nextLine();
        for (int i = 0; i < str.length(); i++) {
            char c = str.charAt(i);//返回索引处的char值.
            System.out.println(c);
        }
    }
}
